//
//  HNTeacherManagerVC.m
//  优学荟管理系统
//
//  Created by edz on 2018/1/11.
//  Copyright © 2018年 星道三好. All rights reserved.
//

#import "HNTeacherManagerVC.h"
#import "HNTeacherBusinessMoneyVC.h"
#import "ZYAttendanceRecordController.h"
#import "ZYTeachersAccountNumberController.h"

@interface HNTeacherManagerVC ()

@end

@implementation HNTeacherManagerVC

- (void)viewWillAppear:(BOOL)animated {
    
    [super viewWillAppear:animated];
    
    [self.navigationController.navigationBar setBackgroundImage:[LLTools createImageWithColor:ColorRGB(255, 255, 255)] forBarMetrics:(UIBarMetricsDefault)];
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:ColorRGB(51,51,51)}];

}

- (void)viewWillDisappear:(BOOL)animated {
    
    [super viewWillDisappear:animated];
    
        [self.navigationController.navigationBar setBackgroundImage:[LLTools createImageWithColor:ColorRGB(47, 204, 138)] forBarMetrics:(UIBarMetricsDefault)];
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:ColorRGB(255,255,255)}];
}


- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.title = @"老师管理";
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTargat:self action:@selector(Pop) image:@"icon_back_student_sign" highImage:@"icon_back_student_sign"];
}

- (void)Pop {
    
    [self.navigationController popViewControllerAnimated:YES];
}

/** 老师列表 */
- (IBAction)teacherList:(UIButton *)sender {
    
    ZYTeachersAccountNumberController *VC = [[ZYTeachersAccountNumberController alloc] init];
    [self.navigationController pushViewController:VC animated:YES];
}

/** 业务提成  */
- (IBAction)money:(UIButton *)sender {
    
    // 老师业务提成
    HNTeacherBusinessMoneyVC *VC = [[HNTeacherBusinessMoneyVC alloc] init];
    [self.navigationController pushViewController:VC animated:YES];
}

/** 考勤记录 */                              
- (IBAction)history:(UIButton *)sender {
    
    [self.navigationController pushViewController:[ZYAttendanceRecordController new] animated:YES];
}
@end
